home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / acpi / asus-touchpad.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2008-10-14  |  319b  |  16 lines

  1. #!/bin/sh
  2. [ -f /usr/share/acpi-support/state-funcs ] || exit 0 
  3.  
  4. # get the current state of the touchpad
  5. TPSTATUS=`synclient -l | awk '/TouchpadOff/ {print $3}'`
  6.  
  7. # if getting the status failed, exit
  8. test -z $TPSTATUS && exit 1
  9.  
  10. if [ $TPSTATUS = 0 ]; then
  11.    synclient TouchpadOff=1
  12. else
  13.    synclient TouchpadOff=0
  14. fi
  15.  
  16.